local hx__jianjia = fk.CreateSkill {
  name = "hx__jianjia",
  tags = { Skill.Limited, },
}

hx__jianjia:addEffect(fk.AskForPeachesDone, {
  name = "hx__jianjia",
  can_trigger = function (self, event, target, player, data)
    return player:hasSkill(hx__jianjia.name) and player:usedSkillTimes(hx__jianjia.name,Player.HistoryGame) == 0 and target.hp < 1
  end,
  on_use = function (self, event, target, player, data)
    local room = player.room
    room:changeMaxHp(player, -1)
    room:recover{
      who = target,
      num = 1 - target.hp,
      recoverBy = player,
      skillName = hx__jianjia.name,
    }
  end
})

return hx__jianjia